package com.lantosec.hmrp.modules.monitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.monitor.entity.VisitEntity;
import com.lantosec.hmrp.modules.monitor.entity.VisitRecordDetailsEntity;
import com.lantosec.hmrp.modules.monitor.entity.VisitRecordEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MonitorVisitMapper extends BaseMapper<VisitEntity> {

    List<VisitEntity> getMonthData(@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<VisitEntity> getYearData(@Param("startTime") String startTime);

    List<VisitRecordEntity> getVisitMonthRecord(@Param("startTime") String startTime,
                  @Param("endTime") String endTime, @Param("userId") String userId);

    List<VisitRecordEntity> getVisitYearRecord(@Param("startTime") String startTime,@Param("userId") String userId);

    List<VisitRecordDetailsEntity> getVisitRecordMonthDetails(@Param("startTime") String startTime,
        @Param("endTime") String endTime, @Param("userId") String userId,@Param("revisitTaskId") String revisitTaskId);

    List<VisitRecordDetailsEntity> getVisitYearDetails(@Param("startTime") String startTime,
        @Param("userId") String userId,@Param("revisitTaskId")String revisitTaskId);
}
